cmake_minimum_required(VERSION 3.21)
project(mysql_demo)

set(CMAKE_CXX_STANDARD 17)



#引入头文件
include_directories(D:\\BtSoft\\mysql\\MySQL8.0\\include)

#引入库文件
link_directories(D:\\BtSoft\\mysql\\MySQL8.0\\lib)

link_libraries(libmysql)

add_executable(mysql_demo main.cpp public.h)

target_link_libraries(mysql_demo libmysql)